<?php
/* @var $this TelescopeController */
/* @var $model Telescope */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Toevoegen';
$this->breadcrumbs=array(
	'Toevoegen',
);
?>
<h1>Toevoegen telescoop</h1>

<div class="form">
    <?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'add-form',
	'enableClientValidation'=>true,
    'enableAjaxValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>
    
        <p class="note">Velden met een <span class="required">*</span> zijn verplicht.</p>
        
        <div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->numberField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>
        <div class="row">                    
                <?php echo $form->labelEx($model,'aperture'); ?>
		<?php echo $form->numberField($model,'aperture'); ?>
		<?php echo $form->error($model,'aperture'); ?>
	</div>
        <div class="row">                    
                <?php echo $form->labelEx($model,'focallength'); ?>
		<?php echo $form->numberField($model,'focallength'); ?>
		<?php echo $form->error($model,'focallength'); ?>
	</div>
        <div class="row">                    
                <?php echo $form->labelEx($model,'magnification'); ?>
		<?php echo $form->numberField($model,'magnification'); ?>
		<?php echo $form->error($model,'magnification'); ?>
	</div>
        <div class="row">                    
                <?php echo $form->labelEx($model,'filter'); ?>
		<?php echo $form->numberField($model,'filter'); ?>
		<?php echo $form->error($model,'filter'); ?>
	</div>
        <div class="row buttons">
		<?php echo CHtml::submitButton('Toevoegen'); ?>
	</div>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->